Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​Options.​ValidateOptions<​TOptions, TDep>

Assembly: Microsoft.Extensions.Options

Inheritance: object → ValidateOptions

Implemented Interfaces

Implementation of <see cref="T:Microsoft.Extensions.Options.IValidateOptions`1" />

Properties

public TDep
Dependency
Gets the dependency.
public string
FailureMessage
Gets the error to return when validation fails.
public string
Name
Gets the options name.
public System.​Func<​TOptions, TDep, bool>
Validation
Gets the validation function.

Methods

Validate​(string name, TOptions options)
Validates a specific named options instance (or all when <paramref name="name" /> is null).
Returns The <see cref="T:Microsoft.Extensions.Options.ValidateOptionsResult" /> result.
name The name of the options instance being validated.
options The options instance.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object